package junyi.card;

/**
 * User: Junyi BEI
 * Date: 12-9-30
 * Time: 下午1:54
 */
public class Category implements CardProperty{
  private int categoryInt;
  public final static Category BASIC = new Category(0);
  public final static Category ITEM = new Category(10);
  public final static Category SPELL = new Category(20);

  public Category(int c) {
    categoryInt = c;
  }

  public int getCategoryInt() {
    return categoryInt;
  }

  public int greaterThan(Card c) {
    return CardProperty.FAILURE;
  }

  public int lessThan(Card c) {
    return CardProperty.FAILURE;
  }

  public int equalsTo(Card c) {
    if(c.getCategory().getCategoryInt() == categoryInt) {
      return CardProperty.SUCCESS;
    };
    return CardProperty.FAILURE;
  }
}
